package cn.touna.jss.common.properties.disconf;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import org.springframework.stereotype.Component;

/**
 * @author: xiaoli
 * @date: 2019/3/13 10:42
 * @Desc:
 **/
@Component
@DisconfFile(targetDirPath = "disconf", filename = "tobacco.properties")
public class TobaccoProperties {


    private String crmTopic;
    private String group;

    @DisconfFileItem(name = "rocketmq.crm.group", associateField = "group")
    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }


    @DisconfFileItem(name = "rocketmq.crm.topic", associateField = "crmTopic")
    public String getCrmTopic() {
        return crmTopic;
    }

    public void setCrmTopic(String crmTopic) {
        this.crmTopic = crmTopic;
    }
}
